package coap.messages;

public class OptionNumber {
	public static final int ContentType = 1;
	public static final int MaxAge = 2;
	public static final int ProxyUri = 3;
	public static final int Etag = 4;
	public static final int UriHost = 5;
	public static final int LocationPath = 6;
	public static final int UriPort = 7;
	public static final int LocationQuery = 8;
	public static final int UriPath = 9;
	public static final int Token = 11;
	public static final int Accept = 12;
	public static final int IfMatch = 13;
	public static final int UriQuery = 15;
	public static final int IfNoneMatch = 21;
	public static final int Fenceposting = 14;
	public static final int Fenceposting2 = 28;
	public static final int Fenceposting3 = 42;
	
	public static String getString(int value){
		switch(value){
		case ContentType:
			return "Content-Type";
		case MaxAge:
			return "Max-Age";
		case ProxyUri:
			return "Proxy-Uri";
		case Etag:
			return "Etag";
		case UriHost:
			return "Uri-Host";
		case LocationPath:
			return "Location-Path";
		case UriPort:
			return "Uri-Port";
		case LocationQuery:
			return "Location-Query";
		case UriPath:
			return "Uri-Path";
		case Token:
			return "Token";
		case Accept:
			return "Accept";
		case IfMatch:
			return "If-Match";
		case UriQuery:
			return "Uri-Query";
		case IfNoneMatch:
			return "If-None-Match";
		case Fenceposting:
			return "fenceposting";
		case Fenceposting2:
			return "fenceposting2";
		case Fenceposting3:
			return "fenceposting3";
		default:
			return "Unknown";
			
		}
	}
}
